using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace TEST
{
    public class Test_TextParsing : MonoBehaviour
    {
        [SerializeField] private TextAsset textAsset;
        //public string line = "Speaker \"pick up pick up!\"";
        // Start is called before the first frame update
        void Start()
        {
            parse();
        }

        void parse()
        {
            List<string> lines = FileManager.ReadTextAsset(textAsset,false);
            foreach(string line in lines)
            {
                DIALOGUE.DIALOGUE_LINE text = DIALOGUE.DialogueParser.Parse(line);
                Debug.Log($"speaker:{text.speaker}\ndialogue:{text.dialogue}\ncommands:{text.commands}");
            }
        }
    }
}
